package com.wxproject.demo.Service.impl;

import com.wxproject.demo.Mapper.LoginMapper;
import com.wxproject.demo.Service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;


    @Override
    public Integer checkEmail(String email) {
        return loginMapper.checkEmail(email);
    }

    @Override
    public Integer activeAccount(String active) {
        return loginMapper.activeAccount(active);
    }

    @Override
    public Integer changePassword(String password,String email) {
        return loginMapper.changePassword(password,email);
    }

    @Override
    public String getEmailByUsername(String email) {
        return loginMapper.getEmailByUsername(email);
    }

    @Override
    public Integer extenceEmail(String email) {
        return loginMapper.extenceEmail(email);
    }

    @Override
    public void getUsers() {
        loginMapper.getUsers();
    }

    @Override
    public void deleteRoles2() {
        loginMapper.deleteRoles2();
    }

    @Override
    public Integer getUserBanId(String username) {
        return loginMapper.getUserBanId(username);
    }

    @Override
    public String getUserIdByUsername(String username) {
        return loginMapper.getUserIdByUsername(username);
    }

    @Override
    public String getUserIdByEmail(String email) {
        return loginMapper.getUserIdByEmail(email);
    }


}
